<%@ page
	import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService"%>

<%
	BlobstoreService blobstoreService = BlobstoreServiceFactory
			.getBlobstoreService();
	String blobKey = "";
	String appKey = "";
	blobKey = request.getParameter("blob-key");
	appKey = request.getParameter("application-key");
	System.out.println(appKey);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Apply to be a Tutor</title>
<link type="text/css" rel="stylesheet"
	href="resources/css/rututorMain.css" />
</head>
<body>
	<%
		if (appKey != null) {
	%>
	<div align='lelf'>
		<h3>Thanks for applying! Will get back to you shortly.</h3>
	</div>
	<%
		} else {
	%>
	<div align='lelf'>
		<h1>Apply to be a Tutor!</h1>
	</div>

	<form action="<%=blobstoreService.createUploadUrl("/upload")%>"
		method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td>Enter Your Name:</td>
				<td><input type="text" name="name" /></td>
			</tr>
			<tr>
				<td>Upload Your Resume:</td>
				<td><input type="file" name="myFile" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="Submit" /></td>
			</tr>

		</table>
	</form>
	<%
		}
	%>
</body>
</html>